package com.app.bimo.module_accounts;

import android.app.Application;

import com.app.bimo.commonbusiness.base.IModuleInit;
import com.app.bimo.commonbusiness.network.RetrofitServiceManager;
import com.mob.MobSDK;

import timber.log.Timber;

//import com.mob.MobSDK;

/**
 * Created by goldze on 2018/6/21 0021.
 * 基础库自身初始化操作
 */

public class BaseModuleInit implements IModuleInit {
    @Override
    public boolean onInitAhead(Application application) {
        //开启打印日志
        //初始化阿里路由框架
        Timber.e("ShareSDk初始化 -- onInitAhead");
//        RetrofitServiceManager.getInstance().addRetrofitService(BuildConfig.APPLICATION_ID,BuildConfig.HOST);
        RetrofitServiceManager.getInstance().addRetrofitService(application, BuildConfig.APPLICATION_ID,BuildConfig.HOST);
        return false;
    }

    @Override
    public boolean onInitLow(Application application) {
        Timber.e("ShareSDk初始化 -- onInitLow");
        MobSDK.init(application);
        return false;
    }
}
